<?php
/**
 * Created by JetBrains PhpStorm.
 * User: admin
 * Date: 12-9-16
 * Time: 下午3:27
 * To change this template use File | Settings | File Templates.
 */

$criteria=new CDbCriteria;
$criteria->condition='`t`.`status`=1 AND `p`.`type_pg`>0';
$criteria->with=array('p','info','pay');
$dataProvider=new CActiveDataProvider('Users',array(
    'criteria'=>$criteria,
    'pagination'=>array(
        'pageSize'=>20,
    ),
));


$session=new CHttpSession();
$session->open();
$session['i']=1;

?>

<div class="detailContent22 wp" style="min-height: 1335px">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table3 paddingbotton80 ">
        <tbody><tr>
            <th width="10%" bgcolor="#efefef" align="center" class="th1">用户ID</th>
            <th width="10%" bgcolor="#efefef" align="center" class="th1">用户名称</th>
            <th width="15%" bgcolor="#efefef" class="th1">会员类型</th>
            <th width="10%" bgcolor="#efefef" class="th1">用户名称</th>
            <th width="15%" bgcolor="#efefef" align="center" class="th1">付费年限</th>
            <th width="15%" bgcolor="#efefef" align="center" class="th1">付费金额</th>
            <th width="15%" bgcolor="#efefef" align="center">信息提交时间</th>
            <th width="15%" bgcolor="#efefef" align="center">付费状态</th>
        </tr>

        <?php
        if(!empty($dataProvider->data))
            $this->widget('zii.widgets.CListView', array(
                'dataProvider'=>$dataProvider,
                'itemView'=>'_users_pay_info',
                'ajaxUpdate'=>false,
                'template'=>"{items}\n{pager}",
//        'itemsTagName'=>'ul',
//        'itemsCssClass'=>'tb',
            ));
        ?>
        </tbody></table>
</div>